package com.baiye.template.service;

import com.baiye.template.pojo.Permission;
import com.baiye.template.pojo.Role;

import java.util.List;

/**
 * @author GUOZHIPENG
 * @version 1.0
 * @date 2021/9/7 16:47
 */
public interface RoleService {
    int deleteById(int id);

    int addRole(Role role);

    int addRoleToUser(int userId, int roleId);

    int deleteRoleToUser(int userId, int roleId);

    List<Role> getRole(Role role, Integer pageIndex,Integer pageSize);

    List<Role> getRoleByUserId(Integer userId);

    int updateRole(Role role);
}
